package com.xingkeduo.pojo.table;

import com.google.common.collect.Lists;
import com.xingkeduo.util.pojo.base.BaseTable;
import org.apache.ibatis.type.Alias;

import java.util.List;

/**
 * 文件概述
 *
 * @author wangxilong <wangxilong@xingkeduo.com>
 * @version id:v0.1 18-12-29 下午7:10
 * @package BeautyOS
 * @copyright Copyright (c) XKD 2019
 */
@Alias("Perms")
public class PermsTable extends BaseTable<PermsTable> {
    private Long systemCode;
    private Long boardCode;
    private Long pid;
    private String name;
    private String url;
    private String font;
    private String icon;
    private Integer type;
    private String value;
    private Integer status;
    private Integer sort;
    private Boolean checked = false;


    private List<PermsTable> children = Lists.newArrayList();

    public Long getSystemCode() {
        return systemCode;
    }

    public PermsTable setSystemCode(Long systemCode) {
        this.systemCode = systemCode;
        return this;
    }

    public Long getBoardCode() {
        return boardCode;
    }

    public PermsTable setBoardCode(Long boardCode) {
        this.boardCode = boardCode;
        return this;
    }

    public Long getPid() {
        return pid;
    }

    public PermsTable setPid(Long pid) {
        this.pid = pid;
        return this;
    }

    public String getName() {
        return name;
    }

    public PermsTable setName(String name) {
        this.name = name;
        return this;
    }

    public Integer getType() {
        return type;
    }

    public PermsTable setType(Integer type) {
        this.type = type;
        return this;
    }

    public String getValue() {
        return value;
    }

    public PermsTable setValue(String value) {
        this.value = value;
        return this;
    }

    public String getUrl() {
        return url;
    }

    public PermsTable setUrl(String url) {
        this.url = url;
        return this;
    }

    public Integer getSort() {
        return sort;
    }

    public PermsTable setSort(Integer sort) {
        this.sort = sort;
        return this;
    }

    public String getFont() {
        return font;
    }

    public PermsTable setFont(String font) {
        this.font = font;
        return this;
    }

    public String getIcon() {
        return icon;
    }

    public PermsTable setIcon(String icon) {
        this.icon = icon;
        return this;
    }

    public List<PermsTable> getChildren() {
        return children;
    }

    public PermsTable setChildren(List<PermsTable> children) {
        this.children = children;
        return this;
    }

    public Integer getStatus() {
        return status;
    }

    public PermsTable setStatus(Integer status) {
        this.status = status;
        return this;
    }

    public Boolean getChecked() {
        return checked;
    }

    public PermsTable setChecked(Boolean checked) {
        this.checked = checked;
        return this;
    }

}
